package com.APIObject.Objects;

import java.util.Objects;

public class Test {
    public static void main(String[] args) {
        //目标：掌握Objects类提供的方法；
        String s1=null;
        String s2="itheima";

      //  System.out.println(s1.equals(s2));
        System.out.println(Objects.equals(s1,s2));
        System.out.println(Objects.isNull(s2));
        System.out.println(Objects.isNull(s1));
        System.out.println(s1==null);
        System.out.println(Objects.nonNull(s1));
    }
}
